# 要求：输入 2024-02-25 输出这一天是这一年的第多少天

date = input("请输入日期：").split('-')
year = int(date[0])
month = int(date[1])
day = int(date[-1])

days = [0,31,28,31,30,31,30,31,31,30,31,30,31]
if (not year % 4 and year % 100) or not year % 400:
    days[2] += 1
result = 0
for i in range(month):
    result += days[i]
result += day
print(f"这一天是这一年的第{result}天")